/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewJFrame.java
 *
 * Created on Sep 23, 2010, 9:08:13 PM
 */

package Java;

import java.awt.event.ActionEvent;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author Akmal
 */
public class CUS_RESERVATION extends javax.swing.JFrame {
    
    Statement stmt;
    Connection con;
    ResultSet rset;
    private String url = "jdbc:oracle:thin:@localhost:1521:XE";
    private String userID = "HR";
    private String userPW = "hr";
    int temp_count=0;// GV
    
    // private final static String newline = "\n";
    /** Creates new form NewJFrame */
    public CUS_RESERVATION()
    {
        super("RESERVATION");
        initComponents();
        setSize(700,500);
        setLocationRelativeTo(null);
        
        
        // GENERATE THE NEXT RESERVATION NUMBER !!! (added by shyan)
        String DOUBT = "SELECT RESERVATION_NUM FROM RESERVATION WHERE RESERVATION_NUM >= ALL (SELECT RESERVATION_NUM FROM RESERVATION)";
        System.out.println(DOUBT); 

        try
        {
            connectDatabase();
            stmt=con.createStatement();
            rset=stmt.executeQuery(DOUBT);
            if (rset.next())
            {
                temp_count = rset.getInt(1);
                temp_count = temp_count + 1;
            }
        }
        catch (SQLException ex)
        {
            ex.printStackTrace();
        }
        numOfReservation.setText(temp_count+"");
        numOfReservation.setEnabled(false);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        TableNum = new javax.swing.JComboBox();
        jLabel5 = new javax.swing.JLabel();
        PaymentDeposit = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        Save = new javax.swing.JButton();
        Back = new javax.swing.JButton();
        jLabel10 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        PaymentType = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        AmountPerson = new javax.swing.JComboBox();
        dayBox = new javax.swing.JComboBox();
        monthBox = new javax.swing.JComboBox();
        yearBox = new javax.swing.JComboBox();
        PhoneNum = new javax.swing.JTextField();
        nameField = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jSeparator2 = new javax.swing.JSeparator();
        jLabel11 = new javax.swing.JLabel();
        timeLabel = new javax.swing.JLabel();
        zzz = new javax.swing.JLabel();
        numOfReservation = new javax.swing.JLabel();
        timeBox = new javax.swing.JComboBox();
        Area = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setResizable(false);
        getContentPane().setLayout(null);

        jLayeredPane1.setMinimumSize(new java.awt.Dimension(700, 500));

        TableNum.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        TableNum.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select...", "1", "2", "3", "4", "5", "6" }));
        TableNum.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TableNumActionPerformed(evt);
            }
        });
        TableNum.setBounds(270, 250, 110, 30);
        jLayeredPane1.add(TableNum, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel5.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        jLabel5.setText("Table number:");
        jLabel5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jLabel5.setBounds(80, 240, 120, 50);
        jLayeredPane1.add(jLabel5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        PaymentDeposit.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        PaymentDeposit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PaymentDepositActionPerformed(evt);
            }
        });
        PaymentDeposit.setBounds(300, 370, 80, 30);
        jLayeredPane1.add(PaymentDeposit, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel2.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        jLabel2.setText("Reservation no.");
        jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jLabel2.setBounds(80, 70, 110, 30);
        jLayeredPane1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel1.setFont(new java.awt.Font("DejaVu Serif Condensed", 1, 24));
        jLabel1.setText("MAKE RESERVATION");
        jLabel1.setBounds(80, 20, 340, 30);
        jLayeredPane1.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Save.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        Save.setText("SAVE");
        Save.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        Save.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                SaveMouseEntered(evt);
            }
        });
        Save.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SaveActionPerformed(evt);
            }
        });
        Save.setBounds(480, 420, 90, 40);
        jLayeredPane1.add(Save, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Back.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        Back.setText("BACK");
        Back.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        Back.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BackActionPerformed(evt);
            }
        });
        Back.setBounds(590, 420, 90, 40);
        jLayeredPane1.add(Back, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel10.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        jLabel10.setText("Phone number");
        jLabel10.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jLabel10.setBounds(80, 220, 120, 20);
        jLayeredPane1.add(jLabel10, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel7.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        jLabel7.setText("Payment deposit:");
        jLabel7.setBounds(80, 370, 150, 30);
        jLayeredPane1.add(jLabel7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        PaymentType.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        PaymentType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select...", "Cash", "Credit Card" }));
        PaymentType.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PaymentTypeActionPerformed(evt);
            }
        });
        PaymentType.setBounds(270, 330, 110, 30);
        jLayeredPane1.add(PaymentType, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel6.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        jLabel6.setText("Payment type:");
        jLabel6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jLabel6.setBounds(80, 330, 130, 30);
        jLayeredPane1.add(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel4.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        jLabel4.setText("Amount of person:");
        jLabel4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jLabel4.setBounds(80, 290, 160, 30);
        jLayeredPane1.add(jLabel4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel3.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        jLabel3.setText("Date for reservation:");
        jLabel3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jLabel3.setBounds(80, 140, 190, 40);
        jLayeredPane1.add(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        AmountPerson.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        AmountPerson.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select...", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }));
        AmountPerson.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AmountPersonActionPerformed(evt);
            }
        });
        AmountPerson.setBounds(270, 290, 110, 30);
        jLayeredPane1.add(AmountPerson, javax.swing.JLayeredPane.DEFAULT_LAYER);

        dayBox.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        dayBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Day", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        dayBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dayBoxActionPerformed(evt);
            }
        });
        dayBox.setBounds(270, 150, 70, 26);
        jLayeredPane1.add(dayBox, javax.swing.JLayeredPane.DEFAULT_LAYER);

        monthBox.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        monthBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Month", "Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec" }));
        monthBox.setBounds(350, 150, 80, 26);
        jLayeredPane1.add(monthBox, javax.swing.JLayeredPane.DEFAULT_LAYER);

        yearBox.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        yearBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Year", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020" }));
        yearBox.setBounds(440, 150, 80, 26);
        jLayeredPane1.add(yearBox, javax.swing.JLayeredPane.DEFAULT_LAYER);

        PhoneNum.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        PhoneNum.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PhoneNumActionPerformed(evt);
            }
        });
        PhoneNum.setBounds(270, 214, 210, 30);
        jLayeredPane1.add(PhoneNum, javax.swing.JLayeredPane.DEFAULT_LAYER);

        nameField.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        nameField.setBounds(270, 110, 210, 30);
        jLayeredPane1.add(nameField, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel8.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        jLabel8.setText("RM");
        jLabel8.setBounds(270, 370, 30, 30);
        jLayeredPane1.add(jLabel8, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jSeparator1.setBounds(0, 60, 700, 10);
        jLayeredPane1.add(jSeparator1, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jSeparator2.setBounds(0, 410, 700, 6);
        jLayeredPane1.add(jSeparator2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel11.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14));
        jLabel11.setText("Customer name:");
        jLabel11.setBounds(80, 110, 140, 30);
        jLayeredPane1.add(jLabel11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        timeLabel.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        timeLabel.setText("Time for reservation:");
        timeLabel.setBounds(80, 180, 180, 30);
        jLayeredPane1.add(timeLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        zzz.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 12)); // NOI18N
        zzz.setForeground(new java.awt.Color(255, 0, 0));
        zzz.setBounds(500, 185, 180, 20);
        jLayeredPane1.add(zzz, javax.swing.JLayeredPane.DEFAULT_LAYER);

        numOfReservation.setFont(new java.awt.Font("DejaVu Serif Condensed", 2, 14));
        numOfReservation.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        numOfReservation.setBounds(270, 70, 150, 30);
        jLayeredPane1.add(numOfReservation, javax.swing.JLayeredPane.DEFAULT_LAYER);

        timeBox.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        timeBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select...", "1100", "1200", "1300", "1400", "1800", "1900", "2000", "2100" }));
        timeBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                timeBoxActionPerformed(evt);
            }
        });
        timeBox.setBounds(270, 180, 110, 30);
        jLayeredPane1.add(timeBox, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Area.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                AreaMouseEntered(evt);
            }
        });
        Area.setBounds(410, 310, 280, 90);
        jLayeredPane1.add(Area, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel9.setFont(new java.awt.Font("DejaVu Serif Condensed", 0, 14)); // NOI18N
        jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/ZzZzZzZ.jpg"))); // NOI18N
        jLabel9.setBounds(-70, -40, 1190, 590);
        jLayeredPane1.add(jLabel9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        getContentPane().add(jLayeredPane1);
        jLayeredPane1.setBounds(0, 0, 700, 500);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void BackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BackActionPerformed
        new MENU_LOGIN().setVisible(true);
        this.setVisible(false);

        // TODO add your handling code here:
}//GEN-LAST:event_BackActionPerformed

    private void PaymentDepositActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PaymentDepositActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_PaymentDepositActionPerformed

    private void AmountPersonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AmountPersonActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_AmountPersonActionPerformed

    private void TableNumActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TableNumActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_TableNumActionPerformed

    private void PaymentTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PaymentTypeActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_PaymentTypeActionPerformed

    private void dayBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dayBoxActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_dayBoxActionPerformed

    private void PhoneNumActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PhoneNumActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_PhoneNumActionPerformed

    private void SaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SaveActionPerformed

        String reserveNum = numOfReservation.getText();
        String name  = nameField.getText();
        String day   = (String) dayBox.getSelectedItem();
        String month = (String) monthBox.getSelectedItem();
        String year  = (String) yearBox.getSelectedItem();
        String date  = day+month+year ;

       
        String time  = timeBox.getSelectedItem().toString();
        String CUSphone  = PhoneNum.getText();
        String tableNUM  = (String) TableNum.getSelectedItem();
        String personNUM = (String) AmountPerson.getSelectedItem();
        String paymentType    = (String) PaymentType.getSelectedItem();
        String paymentDeposit = PaymentDeposit.getText();



        if(reserveNum.equals("") || name.equals("") || CUSphone.equals("") || paymentDeposit.equals("") || day.equals("Day")
                || month.equals("Month") || year.equals("Year") || tableNUM.equals("Select...")
                || personNUM.equals("Select...") || paymentType.equals("Select...")||time.equals("Select..."))
        {
            JOptionPane.showMessageDialog(null, "Please fill in/select properly!");
        }
        else
        {
            String ReservationQuery = "INSERT INTO RESERVATION VALUES('"+reserveNum+"','"+name+"','"+date+"','"+time+"',"+
                        "'"+CUSphone+"','"+tableNUM+"','"+personNUM+"','"+paymentType+"','"+paymentDeposit+"')";
        System.out.println(ReservationQuery);
            String message = "Are you sure you want to make this reservation?";
            String title = "Confirmation";
            int reply = JOptionPane.showConfirmDialog(null, message , title , JOptionPane.YES_NO_OPTION);
            if(reply == JOptionPane.YES_OPTION)
            {
                try
                {
                    connectDatabase();
                    stmt = con.createStatement();
                    stmt.executeUpdate(ReservationQuery);
                    JOptionPane.showMessageDialog(null, "Reservation successful");                   
                }
                catch (SQLException ex)
                {
                    ex.printStackTrace();
                    //Logger.getLogger(CUS_RESERVATION.class.getName()).log(Level.SEVERE, null, ex);
                    //JOptionPane.showMessageDialog(null, "The choosen table is already been booked!");
                }
            }
            clearall();
        }
    }//GEN-LAST:event_SaveActionPerformed

    
            
    private void SaveMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaveMouseEntered
       
    }//GEN-LAST:event_SaveMouseEntered


    private void timeBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_timeBoxActionPerformed

    }//GEN-LAST:event_timeBoxActionPerformed

    // ADDED by shyan
    private void AreaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AreaMouseEntered
        String time =timeBox.getSelectedItem().toString();
        String day  =dayBox.getSelectedItem().toString();
        String month=monthBox.getSelectedItem().toString();
        String year =yearBox.getSelectedItem().toString();
        String date =day+month+year;


        String query="SELECT RESERVATION_DATE,RESERVATION_TIME FROM RESERVATION";
        try
        {
            String y="";
            String m="";
            String d="";
            String DATE="";
            String ReserveTime="";
            String ReserveDate="";
            stmt=con.createStatement();
            rset=stmt.executeQuery(query);
            while(rset.next())
            {
                ReserveTime = rset.getString("RESERVATION_TIME");
                ReserveDate = rset.getString("RESERVATION_DATE");
                y=ReserveDate.substring(0,4);
                String Month = ReserveDate.substring(5,7);
                if (Month.equals("01"))
                    m="Jan";
                else if(Month.equals("02"))
                    m="Feb";
                else if(Month.equals("03"))
                    m="Mar";
                else if(Month.equals("04"))
                    m="Apr";
                else if(Month.equals("05"))
                    m="May";
                else if(Month.equals("06"))
                    m="June";
                else if(Month.equals("07"))
                    m="July";
                else if(Month.equals("08"))
                    m="Aug";
                else if(Month.equals("09"))
                    m="Sep";
                else if(Month.equals("10"))
                    m="Oct";
                else if(Month.equals("11"))
                    m="Nov";
                else
                    m="Dec";
                d=ReserveDate.substring(8,10);

                ReserveDate=d+m+y;

                if(ReserveDate.equals(date) && ReserveTime.equals(time))
                {
                    JOptionPane.showMessageDialog(null, "Unavailable time !");
                    timeBox.setSelectedIndex(0);
                }
            }
        }
        catch(Exception ex)
        {
            ex.printStackTrace();
        }
    }//GEN-LAST:event_AreaMouseEntered

    private void clearall()
    {
        
        nameField.setText("");
        dayBox.setSelectedIndex(0);
        monthBox.setSelectedIndex(0);
        yearBox.setSelectedIndex(0);
        timeBox.setSelectedIndex(0);
        PhoneNum.setText("");
        TableNum.setSelectedIndex(0);
        AmountPerson.setSelectedIndex(0);
        PaymentType.setSelectedIndex(0);
        PaymentDeposit.setText("");
    }

    private void connectDatabase()
    {
         try
         {
            //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
            System.out.println("Driver Loaded");
            con = DriverManager.getConnection(url,userID,userPW);
            System.out.println("Database Connected");
         }
         catch (Exception ex)
         {
            Logger.getLogger(CUS_RESERVATION.class.getName()).log(Level.SEVERE, null, ex);
         }
    }

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                    new CUS_RESERVATION().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox AmountPerson;
    private javax.swing.JLabel Area;
    private javax.swing.JButton Back;
    private javax.swing.JTextField PaymentDeposit;
    private javax.swing.JComboBox PaymentType;
    private javax.swing.JTextField PhoneNum;
    private javax.swing.JButton Save;
    private javax.swing.JComboBox TableNum;
    private javax.swing.JComboBox dayBox;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JComboBox monthBox;
    private javax.swing.JTextField nameField;
    private javax.swing.JLabel numOfReservation;
    private javax.swing.JComboBox timeBox;
    private javax.swing.JLabel timeLabel;
    private javax.swing.JComboBox yearBox;
    private javax.swing.JLabel zzz;
    // End of variables declaration//GEN-END:variables

}
